package com.qiang.test09;

import jdk.swing.interop.SwingInterOpUtils;

public enum Season {

    SPRING("春天") {
        @Override
        public void show() {
            System.out.println(this.name);
        }
    },
    SUMMER("夏天") {
        @Override
        public void show() {

        }
    },
    AUTUMN("秋天") {
        @Override
        public void show() {
        }
    },
    WINTER("冬天") {
        @Override
        public void show() {
        }
    };
    public final String name;

    //有参构造
    private Season(String name) {
        this.name = name;
    }

    //抽象方法
    public abstract void show();

}
